package com.yami.shop.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.yami.shop.bean.model.BannerImage;
import com.yami.shop.dao.BannerImageMapper;
import com.yami.shop.service.BannerImageService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class BannerImageServiceImpl extends ServiceImpl<BannerImageMapper, BannerImage> implements BannerImageService {

    @Autowired
    private BannerImageMapper bannerImageMapper;

    @Override
    public BannerImage getBannerImage() {
        return bannerImageMapper.getBannerImage();
    }

    @Override
    public void deleteBannerIds(Long[] ids) {
        bannerImageMapper.deleteBannerIds(ids);
    }
}
